package com.cc.bsp.persistence;

import java.util.List;
import java.util.Map;

import com.cc.bsp.persistence.exception.PersistenceException;

public interface IQLDao {

	<X> X findUniqueBySQL(final String sql, final Object... propertyParameters) throws PersistenceException;;

	<X> List<X> findBySQL(final String sql, IQueryPageOrder pageorder, final Object... propertyParameters) throws PersistenceException;

	void batchExecuteSQL(final String sql, final Object... propertyParameters) throws PersistenceException;

	void batchExecuteSQL(final String sql, final Map<String, ?> parameters) throws PersistenceException;

}
